﻿<%@ Page Language="C#" MasterPageFile="~/Manager/MasterPage/PageTemplate.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="BingZi.app_HelpUI.Edit" ValidateRequest="false"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
 
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Manager/inc/FineMessBox/css/subModal.css")%>" />
    <script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Manager/inc/FineMessBox/js/common.js")%>"></script>
    <script type="text/javascript" src="<%=Page.ResolveClientUrl("~/Manager/inc/FineMessBox/js/subModal.js")%>"></script>
<script language="javascript" src="<%=Page.ResolveClientUrl("~/manager/js/jquery-pack.js")%>"  charset="utf-8"></script>     
<%if (((CMD == "New") || (CMD == "Edit")))
                                          {  %> 
<script type="text/javascript" src="<%=Page.ResolveClientUrl("~/")%>manager/inc/fckeditor/fckeditor.js"></script>

	<script type="text/javascript">

window.onload = function()
{
	// Automatically calculates the editor base path based on the _samples directory.
	// This is usefull only for these samples. A real application should use something like this:
	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
	//var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;

	var oFCKeditor = new FCKeditor( '<%=H_Description_Input.UniqueID %>' ) ;
	 
	oFCKeditor.BasePath	= "/manager/inc/fckeditor/"
	oFCKeditor.ToolbarSet ="Min";
	oFCKeditor.Width = '100%'
	oFCKeditor.Height = '350'
	oFCKeditor.ReplaceTextarea() ;


}
document.aspnetForm.onsubmit =function(){ 
   	var oEditor = FCKeditorAPI.GetInstance('<%=H_Description_Input.UniqueID %>');
    oEditor.UpdateLinkedField();
    return checkForm(this)
}
function FCKeditor_OnComplete(editorInstance) {
   //FCKeditorAPI.GetInstance(’FCKeditor1′).Commands.GetCommand(’FitWindow’).Execute();
    //var oEditor = FCKeditorAPI.GetInstance('<%=H_Description_Input.UniqueID %>');
    //oEditor.UpdateLinkedField();
}
<%}%>
</script>
 
 
 
    <BingZiWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadOPTxt="修改帮助信息" HeadTitleTxt="帮助信息管理">
    </BingZiWebControls:HeadMenuWebControls>
    <BingZiWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <BingZiWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="修改帮助信息">
        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
            <tr id="Tr1" runat="server">
                <td class="table_title" colspan="2">
                    <asp:Label ID="CatListTitle" runat="server"></asp:Label></td>
            </tr>
		<tr id="TopTr" runat="server">
			<td class="table_body">
                上级帮助</td>
			<td class="table_none">
                <asp:Label ID="G_ParentID_Txt" runat="server"></asp:Label></td>
		</tr>
            <tr id="Tr2" runat="server">
                <td class="table_body" style="height: 25px">
                    帮助名称</td>
                <td class="table_none" style="height: 25px">
                    <asp:TextBox ID="G_CName" title="请输入分类名称~50:!" runat="server" CssClass="text_input"></asp:TextBox></td>
            </tr>
            
              <tr>
                    <td class="table_body">
                       帮助类型</td>
                    <td class="table_none">
                     <asp:RadioButtonList  ID="H_HelpType_Input" title="请输入类型1:信息;0:分类~255:int!"  
                            runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
                    <%--    <asp:TextBox ID="H_HelpType_Input" title="请输入类型1:信息;0:分类~255:int!" runat="server" CssClass="text_input"></asp:TextBox>--%>
                    
                        <asp:Label ID="H_HelpType_Disp" runat="server"></asp:Label></td>
                </tr>
            
                <tr>
                    <td class="table_body">
                        帮助内容</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_Description_Input" title="请输入帮助内容~2147483647:" runat="server" CssClass="text_input"  TextMode="MultiLine" Rows="15"></asp:TextBox>
                    
                        <asp:Label ID="H_Description_Disp" runat="server"></asp:Label></td>
                </tr>
            
            
            <tr>
                <td colspan="2">
                </td>
            </tr>
		<tr id="SubmitTr" runat="server"><td colspan="2" align="right">
            <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
            <input id="Reset1" class="button_bak" type="reset" value="重填" />&nbsp;
		
		</td></tr>
		</table>        
        </BingZiWebControls:TabOptionItem>
    </BingZiWebControls:TabOptionWebControls>
</asp:Content>
